//
//  GPGoogleLocationController.m
//  Keping
//
//  Created by 23 on 2018/3/12.
//  Copyright © 2018年 柯平. All rights reserved.
//

#import "GPGoogleLocationController.h"
#import <GoogleMaps/GoogleMaps.h>


@interface GPGoogleLocationController ()

@end

@implementation GPGoogleLocationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"Location";
    
    GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:self.latitude
                                                            longitude:self.longitude
                                                                 zoom:18];
    GMSMapView *mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera];
    
    GMSMarker *marker = [[GMSMarker alloc] init];
    marker.position = camera.target;
    marker.snippet = self.address;
    marker.appearAnimation = kGMSMarkerAnimationPop;
    marker.map = mapView;
    
    
    self.view = mapView;
    
}


@end
